package org.pp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商品类别
 * </p>
 *
 * @author haima
 * @since 2024-06-02
 */
@Getter
@Setter
@TableName("pp_categorize")
@Schema(name = "PpCategorize", description = "商品类别")
public class PpCategorize implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "分类id")
    @TableId(value = "cate_id", type = IdType.AUTO)
    private Long cateId;

    @Schema(description = "父级ID")
    private Long pid;

    @Schema(description = "英文名称")
    private String enName;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "类型，1为商品分类，2为推荐分类")
    private Integer type;

    @Schema(description = "是否是导航分类，只有商品分类才可以是导航")
    private Boolean ifNav;

    @Schema(description = "图标")
    private String ico;

    @Schema(description = "图标url")
    @TableField(exist = false)
    private String icoUrl;

    @Schema(description = "租户号")
    private Long tenantId;

    @Schema(description = "乐观锁")
    private Integer revision;

    @Schema(description = "创建人")
    private String createdBy;

    @Schema(description = "更新人")
    private String updatedBy;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    @Schema(description = "更新时间")
    private LocalDateTime updatedTime;

    @Schema(description = "逻辑删除 1为删除 0为正常")
    private Boolean deleted;
}
